package com.baizhi.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import javax.persistence.Id;
import javax.persistence.Table;

//配置实体类对应的数据库表表名
@Table(name = "yx_admin")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Admin {

    @Id    //该属性是主键
    private String id;
    private String username;
    private String password;
    private String status;
    private String salt;
    //配置属性名与数据库字段名对应
    //@Column(name = "_")
    //@Transient  /、写在属性上 标识该属性在数据库不存在
}